package com.yanqu.road.server.cmd.activity.peakstronghold.cross;

import com.yanqu.road.entity.activity.peakstronghold.config.PeakStrongHoldConfig;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.activity.PeakStrongholdWarProto;
import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.manger.activity.peakstronghold.PeakStrongholdActivityMgr;
import com.yanqu.road.server.manger.player.GamePlayerMgr;
import com.yanqu.road.server.protocol.CrossProtocol;
import com.yanqu.road.server.protocol.GameProtocol;
import com.yanqu.road.utils.YanQuMessageUtils;

//@Cmd(code = GameProtocol.S_PEAK_STRONGHOLD_NOTIFY_WAIT_UPDATE_END_CONFIRM, desc = "报名结束后跨服在等待游戏服的返回确认")
@Deprecated
public class CrossPeakStrongholdNotifyConfirmUpdateEndCmd extends AbstractCommand {
    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(GamePlayer player, YanQuMessage packet) throws Exception {
//        PeakStrongholdActivityMgr.confirmUpdateAbilityEnd();
//        PeakStrongHoldConfig config = PeakStrongholdActivityMgr.getConfig();
//        if (config != null) {
//            PeakStrongholdWarProto.CrossPeakHoldConfirmReceiveMsg.Builder crossMsg = PeakStrongholdWarProto.CrossPeakHoldConfirmReceiveMsg.newBuilder();
//            crossMsg.setActivityId(config.getActivityInfo().getActivityId());
//            crossMsg.setProtocolCode(GameProtocol.S_PEAK_STRONGHOLD_NOTIFY_WAIT_UPDATE_END_CONFIRM);
//            YanQuMessage message = YanQuMessageUtils.buildMessage(CrossProtocol.C_PEAK_STRONGHOLD_GAMESERVER_CONFIRM_RECEIVE, crossMsg);
//            GamePlayerMgr.sendPacket(0, message);
//        }
    }

    @Override
    public void sendData(GamePlayer player) {
    }
}
